name: testsPCE run_id: commands[0] env HOME: /home/jenkins env LANG: C.UTF-8 env PATH: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE/bin:/opt/pyenv/bin:/tmp/venv-pRiB/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PIP_EXTRA_INDEX_URL: https://gitlab.com/api/v4/projects/33090323/packages/pypi/simple env PIP_USER: 0 env PYTHONHASHSEED: 3560934780 env PYTHONIOENCODING: utf-8 env SSH_AUTH_SOCK: ******************************** env TOX_ENV_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE env TOX_ENV_NAME: testsPCE env TOX_WORK_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox env VIRTUAL_ENV: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE env __TOX_ENVIRONMENT_VARIABLE_ORIGINAL_CI: true metadata pid: 4771 cwd: /w/workspace/transportpce-tox-verify-transportpce-master/tests allow: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/testsPCE/bin/*:launch_tests.sh cmd: ./launch_tests.sh pce exit_code: 1 pytest -q transportpce_tests/pce/test01_pce.py .................... [100%] 20 passed in 110.90s (0:01:50) pytest -q transportpce_tests/pce/test02_pce_400G.py ............ [100%] 12 passed in 46.74s pytest -q transportpce_tests/pce/test03_gnpy.py E...FFF. [100%] ==================================== ERRORS ==================================== ________ ERROR at setup of TestTransportGnpy.test_00_load_port_mapping _________ cls = @classmethod def setUpClass(cls): # pylint: disable=bare-except sample_files_parsed = False try: TOPO_CLLINET_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "gnpy", "clliNetwork.json") with open(TOPO_CLLINET_FILE, 'r', encoding='utf-8') as topo_cllinet: cls.topo_cllinet_data = topo_cllinet.read() TOPO_ORDNET_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "gnpy", "openroadmNetwork.json") with open(TOPO_ORDNET_FILE, 'r', encoding='utf-8') as topo_ordnet: cls.topo_ordnet_data = topo_ordnet.read() TOPO_ORDTOPO_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "gnpy", "openroadmTopology.json") with open(TOPO_ORDTOPO_FILE, 'r', encoding='utf-8') as topo_ordtopo: cls.topo_ordtopo_data = topo_ordtopo.read() PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), "..", "..", "sample_configs", "gnpy", "gnpy_portmapping_121.json") with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: cls.port_mapping_data = port_mapping.read() sample_files_parsed = True except PermissionError as err: print("Permission Error when trying to read sample files\n", err) sys.exit(2) except FileNotFoundError as err: print("File Not found Error when trying to read sample files\n", err) sys.exit(2) except: print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) sys.exit(2) finally: if sample_files_parsed: print("sample files content loaded") with open('gnpy.log', 'w', encoding='utf-8') as outfile: print('starting GNPy REST server...') # pylint: disable=consider-using-with test_utils.process_list.append(subprocess.Popen( ['gnpy-rest'], stdout=outfile, stderr=outfile, stdin=None)) > cls.processes = test_utils.start_tpce() ^^^^^^^^^^^^^^^^^^^^^^^ transportpce_tests/pce/test03_gnpy.py:98: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ def start_tpce(): if 'NO_ODL_STARTUP' in os.environ: print('No OpenDaylight instance to start!') return [] print('starting OpenDaylight...') if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': process = start_lighty() else: process = start_karaf() if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): print('OpenDaylight started !') else: print('OpenDaylight failed to start !') shutdown_process(process) for pid in process_list: shutdown_process(pid) > sys.exit(1) E SystemExit: 1 transportpce_tests/common/test_utils.py:232: SystemExit ---------------------------- Captured stdout setup ----------------------------- sample files content loaded starting GNPy REST server... starting OpenDaylight... starting KARAF (karaf) TransportPCE build... Searching for patterns in karaf.log... Pattern not found after 100 seconds! OpenDaylight failed to start ! =================================== FAILURES =================================== __________ TestTransportGnpy.test_04_path_computation_FeasibleWithPCE __________ self = def test_04_path_computation_FeasibleWithPCE(self): response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) self.assertEqual(response['status_code'], requests.codes.ok) > self.assertEqual(response['output']['configuration-response-common']['response-code'], '200') E AssertionError: '500' != '200' E - 500 E ? ^ E + 200 E ? ^ transportpce_tests/pce/test03_gnpy.py:144: AssertionError ___ TestTransportGnpy.test_05_path_computation_FoundByPCE_NotFeasibleByGnpy ____ self = def test_05_path_computation_FoundByPCE_NotFeasibleByGnpy(self): self.path_computation_input_data["service-name"] = "service-2" self.path_computation_input_data["service-handler-header"]["request-id"] = "request-2" self.path_computation_input_data["hard-constraints"] =\ {"include": {"node-id": ["OpenROADM-2", "OpenROADM-3", "OpenROADM-4"]}} response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) self.assertEqual(response['status_code'], requests.codes.ok) self.assertEqual(response['output']['configuration-response-common'][ 'response-code'], '500') self.assertEqual(response['output']['configuration-response-common'][ 'response-message'], 'No path available by PCE and GNPy ') self.assertIn('A-to-Z', > [response['output']['gnpy-response'][0]['path-dir'], ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ response['output']['gnpy-response'][1]['path-dir']]) E KeyError: 'gnpy-response' transportpce_tests/pce/test03_gnpy.py:174: KeyError ______ TestTransportGnpy.test_06_path_computation_FoundByPCE_FoundByGNPy _______ self = def test_06_path_computation_FoundByPCE_FoundByGNPy(self): self.path_computation_input_data["service-name"] = "service-3" self.path_computation_input_data["service-handler-header"]["request-id"] = "request-3" self.path_computation_input_data["service-z-end"]["node-id"] = "XPONDER-4" self.path_computation_input_data["hard-constraints"] =\ {"include": {"node-id": ["OpenROADM-2", "OpenROADM-3"]}} response = test_utils.transportpce_api_rpc_request('transportpce-pce', 'path-computation-request', self.path_computation_input_data) self.assertEqual(response['status_code'], requests.codes.ok) > self.assertEqual(response['output']['configuration-response-common'][ 'response-code'], '200') E AssertionError: '500' != '200' E - 500 E ? ^ E + 200 E ? ^ transportpce_tests/pce/test03_gnpy.py:196: AssertionError =========================== short test summary info ============================ FAILED transportpce_tests/pce/test03_gnpy.py::TestTransportGnpy::test_04_path_computation_FeasibleWithPCE FAILED transportpce_tests/pce/test03_gnpy.py::TestTransportGnpy::test_05_path_computation_FoundByPCE_NotFeasibleByGnpy FAILED transportpce_tests/pce/test03_gnpy.py::TestTransportGnpy::test_06_path_computation_FoundByPCE_FoundByGNPy ERROR transportpce_tests/pce/test03_gnpy.py::TestTransportGnpy::test_00_load_port_mapping 3 failed, 4 passed, 1 error in 130.71s (0:02:10)